<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Client</title>
</head>
<body>
	<script>
		let data = '';
		const ifr = document.createElement('iframe');
		ifr.src = "http://localhost:8081/data.html";
		ifr.style.display = 'none';
		document.body.appendChild(ifr);
		ifr.onload = function() {
			ifr.onload = function() {
				data = ifr.contentWindow.name;
				console.log('收到数据:', data);
			}
			ifr.src = "http://localhost:8080/proxy.html";
		}
	</script>
</body>
</html>